package com.knowswift.common.common;


import com.knowswift.common.utils.MD5Utils;

/**
 * 全局变量。禁止在项目中使用未经定义的值(魔法值)，避免改动麻烦，以及其他人无法理解业务逻辑
 */
//@SuppressWarnings("all")
public class GlobalProperty {


    //小程序
    public final static String MINI_PROGRAM_ID = "";
    public final static String MINI_PROGRAM_SECRET = "";

    //公众号
    public final static String WECHAT_OFFICIAL_ACCOUNTS_APP_ID = "";
    public final static String WECHAT_OFFICIAL_ACCOUNTS_APP_SECRET = "";
    public final static String WECHAT_OFFICIAL_ACCOUNTS_TOKEN = "";//
    public final static String WECHAT_OFFICIAL_ACCOUNTS_ASE_KEY = "";//

    public final static String APP = "app";
    public final static String ADMIN = "admin";

    public final static String DEFAULT_PASSWORD = MD5Utils.md5Decode32WithSalt("12345678");


    public static final Integer MESSAGE_RELATION_TYPE_NEW_ISSUE = 1;
    public static final Integer MESSAGE_RELATION_TYPE_AUDIT = 2;

    public static final String SETTING_NAME_ENABLE = "enable";
    public static final String SETTING_NAME_TEMPERATURE = "temperature";
    public static final String SETTING_NAME_HUMIDITY = "humidity";
    public static final String SETTING_NAME_ELECTRICITY = "electricity";
    public static final Integer DEFAULT_MONITOR_INTERVAL = 360; // 分钟
    public static final Integer DEVICE_STATUS_NORMAL = 0;//未警报
    public static final Integer DEVICE_STATUS_ALERT = 1;//警报
    public static final Integer DEVICE_STATUS_ERROR = -1;//异常


}

